package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;

public class Exceptions {

    /**
     * 抛出业务异常
     *
     * @param code 枚举接口
     */
    public static void cast(Code code) {
        throw new StockException(code);
    }


}